//Eg9-4.cpp
#include<iostream>
using namespace std;
void main()
{
    char c[30]="this is string";
    double d=-1234.8976;

    cout.width(30);    
    cout.fill('*');
    cout.setf(ios::left);
    cout<<c<<"----L1"<<endl;
    
    cout.width(30);
    cout.setf(ios::right);
    cout<<c<<"----L2"<<endl;    
 
    cout.setf(ios::dec|ios::showbase|ios::showpoint);
    cout.width(30);
    cout<<d<<"----L3"<<"\n";

    cout.setf(ios::showpoint);
    cout.precision(10);
    cout.width(30);
    cout<<d<<"----L4"<<"\n";

    cout.width(30);
    cout.setf(ios::oct,ios::basefield);
    cout<<100<<"----L5"<<"\n";
    
}
